package com.example.system.dto;

import com.example.starter.webmvc.valid.CreateValid;
import com.example.starter.webmvc.valid.UpdateValid;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author 王令
 * @since 2022/9/18 14:58
 */
@Data
public class ClientDto implements Serializable {

    @NotBlank(message = "客户端id不能为空", groups = {CreateValid.class, UpdateValid.class})
    private String clientId;

    @NotBlank(message = "客户端密钥不能为空", groups = {CreateValid.class, UpdateValid.class})
    private String clientSecret;

    private String resourceIds;

    private String scope;

    private String authorizedGrantTypes;

    private String webServerRedirectUri;

    private String authorities;

    private Integer accessTokenValidity;

    private Integer refreshTokenValidity;

    private String autoapprove;
}
